"""
URL configuration for djangoAdmin project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

import app.views

urlpatterns = [
    path('uploadComment/', app.views.UploadComment.as_view()),
    path('getStoreId/', app.views.GetStoreId.as_view()),
    path('upload_avatar/', app.views.UploadAvatarView.as_view(), name='upload_avatar'),
    path('login/', app.views.LoginView.as_view(), name='login'),
    path('register/', app.views.RegisterView.as_view(), name='register'),
    path('show/', app.views.ShowView.as_view(), name='show'),
    path('showDishes/',app.views.ShowDishesView.as_view(),name='showDishes'),
    path('showStore/',app.views.ShowStoreView.as_view(),name='showStore'),
    path('getUserInfo/',app.views.GetUserInfo.as_view(),name='getUserInfo'),
    path('shopCar/',app.views.ShopCar.as_view(),name='shopCart'),
    path('addShopCar/',app.views.AddShopCar.as_view()),
    path('deleteShopCar/',app.views.DeleteShopCar.as_view()),
    path('addBalance/',app.views.AddBalance.as_view(),name='addBalance'),
    path('address/',app.views.AddressView.as_view()),
    path('loadAddress/',app.views.LoadAddress.as_view()),
    path('changeAddress/',app.views.ChangeAddress.as_view()),
    path('addAddress/',app.views.AddAddress.as_view()),
    path('addOrder/',app.views.AddOrder.as_view()),
    path('pay/',app.views.Pay.as_view()),
    path('showStarStore/',app.views.ShowStarStore.as_view()),
    path('loadStarStore/',app.views.LoadStarStore.as_view()),
    path('getOrder/',app.views.GetOrder.as_view()),
    path('cancelOrder/',app.views.CancelOrder.as_view()),
    path('updateOrderStatus/',app.views.UpdateOrderStatus.as_view()),

    # path('showStarDishes/', app.views.ShowStarDishes.as_view()),
    # path('loadStarDishes/', app.views.LoadStarDishes.as_view()),
    path('stores/',app.views.StoreListView.as_view()),
    path('search/',app.views.SearchProductsView.as_view()),

]
